import java.util.ArrayList;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        List<AnimalKeeper> animalKeepers = new ArrayList<>();
        List<Animal> animals = new ArrayList<>();
        List<Visitor> visitors = new ArrayList<>();

        // 创建动物管理员
        AnimalKeeper animalKeeper1 = new AnimalKeeper("张三");
        AnimalKeeper animalKeeper2 = new AnimalKeeper("李四");
        AnimalKeeper animalKeeper3 = new AnimalKeeper("王五");

        // 添加到列表中
        animalKeepers.add(animalKeeper1);
        animalKeepers.add(animalKeeper2);
        animalKeepers.add(animalKeeper3);

        // 创建动物
        Animal animal1 = new Animal("狮子");
        Animal animal2 = new Animal("大象");
        Animal animal3 = new Animal("长颈鹿");

        // 添加到列表中
        animals.add(animal1);
        animals.add(animal2);
        animals.add(animal3);

        // 创建游客
        Visitor visitor1 = new Visitor("小明");
        Visitor visitor2 = new Visitor("小红");

        // 添加到列表中
        visitors.add(visitor1);
        visitors.add(visitor2);

        // 显示所有动物管理员
        System.out.println("所有动物管理员:");
        for (AnimalKeeper keeper : animalKeepers) {
            System.out.println(keeper.getUserName());
        }
        System.out.println("-----------------------------");

        // 显示所有动物
        System.out.println("所有动物:");
        for (Animal animal : animals) {
            System.out.println(animal.getUserName());
        }
        System.out.println("-----------------------------");

        // 显示所有游客
        System.out.println("所有游客:");
        for (Visitor visitor : visitors) {
            System.out.println(visitor.getUserName());
        }
        System.out.println("-----------------------------");
    }
}